home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / gifsave.zip / gifsave.h < prev    next >
C/C++ Source or Header  |  1992-09-26  |  534b  |  37 lines

  1. #ifndef GIFSAVE_H
  2. #define GIFSAVE_H
  3.  
  4.  
  5.  
  6. enum GIF_Code {
  7.     GIF_OK,
  8.     GIF_ERRCREATE,
  9.     GIF_ERRWRITE,
  10.     GIF_OUTMEM
  11. };
  12.  
  13.  
  14.  
  15. int  GIF_Create(
  16.          char *filename,
  17.          int width, int height,
  18.          int numcolors, int colorres
  19.      );
  20.  
  21. void GIF_SetColor(
  22.          int colornum,
  23.          int red, int green, int blue
  24.      );
  25.  
  26. int  GIF_CompressImage(
  27.          int left, int top,
  28.          int width, int height,
  29.          int (*getpixel)(int x, int y)
  30.      );
  31.  
  32. int  GIF_Close(void);
  33.  
  34.  
  35.  
  36. #endif
  37.